
import type { RouteRecordRaw } from 'vue-router'

export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/error/404.vue'),
    meta: {
      hidden: true,
    },
  },

  // 一级路由是一级菜单 二级路由是二级菜单 如果一级路由只有一个二级路由 那么二级路由的菜单会取代一级路由的菜单
  {
    path: '/',
    component: () => import('@/views/home/index.vue'),
  },
  {
    path: '/home',
    component: () => import('@/views/home/index.vue'),
  },

  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/center',
    component: () => import('@/views/center/index.vue'),
  },
  {
    path: '/product',
    component: () => import('@/views/product/index.vue'),
    name:'Product',
  },
  {
    path: '/shopcart',
    component: () => import('@/views/shopcart/index.vue'),
  },
  {
    path: '/category',
    component: () => import('@/views/category/index.vue'),
  },
  {
    path: '/search',
    component: () => import('@/views/search/index.vue'),
    name:'Search',
  },
]
